import Vue from '../../core/index'
import { inBrowser } from '../../core/util/env'
import { query } from '../util/index'
import { mountComponent } from '../../core/instance/initLifecycle'
// Vue 原型上定义 $mount方法
Vue.prototype.$mount = function (el, hydrating) {
  el = el && inBrowser ? query(el) : undefined
  return mountComponent(this, el, hydrating)
}

export default Vue